#include "stable.h"
#include "QkMainWindow.h"
#include "QkBaseView.h"

QkBaseView::QkBaseView()
{
}

QkBaseView::QkBaseView(QWidget *parent) : QWidget(parent)
{
}

QkBaseView::~QkBaseView()
{
}

void QkBaseView::paintEvent(QPaintEvent *event)
{
	Q_UNUSED(event);

	QPainter p(this);

	p.fillRect(rect(), Qt::white);
	p.drawText(rect(), Qt::AlignCenter | Qt::AlignVCenter, metaObject()->className());
}

QkToolBar *QkBaseView::toolBar() const
{
	QkMainWindow *mainWindow = QkMainWindow::current();

	return mainWindow->toolBar();
}

void QkBaseView::activated()
{
}

void QkBaseView::deactivated()
{
}
